from google.appengine.ext import db

class Annotation(db.Model):
    email = db.EmailProperty()
    author = db.StringProperty()
    uri = db.StringProperty()
    tagid = db.StringProperty()
    date = db.DateTimeProperty(auto_now_add=True)
    rating = db.RatingProperty()
    content = db.TextProperty()

class Stuff99(db.Model):
    when = db.DateTimeProperty()
    who = db.StringProperty()
    what = db.StringProperty()
    uri = db.StringProperty()
    price = db.FloatProperty()
    vendor = db.StringProperty()    
    rating = db.RatingProperty()
    comment = db.StringProperty()
    picture = db.BlobProperty(default=None)

class HashTable(db.Model):
    hashkey = db.StringProperty()
    hashvalue = db.StringProperty()
    tag = db.StringProperty()
    secret = db.StringProperty()
    
class Media(db.Model):
    name = db.StringProperty()
    media = db.BlobProperty(default=None)
    mime = db.StringProperty()
    
class Zone(db.Model):
    name = db.StringProperty()
    gps = db.GeoPtProperty()
           
class Customer(db.Model):
    name = db.StringProperty()
    email = db.EmailProperty()
    phone = db.PhoneNumberProperty()  
    address = db.PostalAddressProperty()  
    date = db.DateTimeProperty(auto_now_add=True)
    status = db.StringProperty()
    password = db.StringProperty()